package com.pmcc.core.repository;

import com.pmcc.core.entity.SmsRecord;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by tomas on 2020/10/10.
 */
public interface SmsRecordRepository extends JpaRepository<SmsRecord,String> {
    SmsRecord findFirstByTelephoneOrderByCreateTimeDesc(String cellphone);
    List<SmsRecord> findByCustomerIdAndTaskIdAndCreateTimeBetween(String customerId, String taskId, Date start,Date end);
}
